JMGetTextLength
Returns the length of the string in a text object.
OSStatus JMGetTextLength (
const JMTextRef textRef,
UInt32* textLengthInCharacters);
textRef
- The text object containing the string.
textLengthInCharacters
- A pointer to an integer. On return, this parameter contains the length of the string, in characters.
- function result
- A result code; see "JManager Result Codes".
DISCUSSION
This function returns the string length in characters rather than bytes, since the Unicode standard uses 2 bytes per character, while standard Mac OS encodings and UTF-8 use only 1.